﻿using Microsoft.EntityFrameworkCore;
using ShopeeWebApi.Model.Enum;
using System;
using System.Collections.Generic;

namespace ShopeeWebApi.Model
{
    public class Area
    {       
        public int Id { get; set; }

        [Comment("地区名称")]
        public string AreaName { get; set; }
        [Comment("地区简称")]
        public string ShorterForm  { get; set; }

        [Comment("所属平台")]
        /// <summary>
        /// 所属平台
        /// </summary>
        public EnumPlatform Platform { get; set; }

        [Comment("店铺ID")]
        public int ShopId { get; set; }

        public EnumShopType? ShopType { get; set; }

        public List<AreaCategoryRelation> AreaCategoryRelations { get; set; }
    }

    public class ErrorDatas
    {
        public ErrorDatas()
        {

        }      

        public ErrorDatas(EnumPlatform platform, int? amzFormRawID, int? amzRSRID, string message)
        {
            Platform = platform;
            AmzFormRawID = amzFormRawID;
            AmzRSRID = amzRSRID;
            Message = message;
        }      
        public int ID { get; set; }
        public EnumPlatform Platform { get; set; }
        public int? AmzFormRawID { get; set; }
        public int? AmzRSRID { get; set; }
        public string Message { get; set; }

        public DateTime datetime { get; set; } = DateTime.Now;
    }
}
